function plot_runtime_res_concensus()
%close all
h = clf;
data = 'res_concensus/1000_200_10/rho_14_alpha_14/';
%eps_output = '/home/tqlong/Dropbox/report/distnmf/paper1/figures/plot_runtime_res_concensus_1000_200.eps';
eps_output = 'c:/users/wk/Dropbox/report/distnmf/paper1/figures/plot_runtime_res_concensus_1000_200.eps';
for i=1:16
    a = load([data num2str(i)], 'HorizontalAlignment', 'center');
    
    subplot(1,2,1)
    x = a(:,1); y = a(:,5);
    n = floor(length(x) / 2);
    semilogy(x,y), hold on
    text(x(n), y(n), ['\fontsize{12}\bf{' num2str(i) '}'], 'HorizontalAlignment', 'center')
    ylabel('residual');
    xlabel('iterations');

    subplot(1,2,2)
    x = a(:,2); y = a(:,5);
    n = floor(length(x) / 2);
    semilogy(x,y), hold on
    text(x(n), y(n), ['\fontsize{12}\bf{' num2str(i) '}'], 'HorizontalAlignment', 'center')
    ylabel('residual');
    xlabel('runtime (seconds)');
end
print(h, '-depsc', '-tiff', '-r300', eps_output)
%print(h, '-depsc', eps_output)
end
